Registers file associations for the current application.
Syntax
Public Overloads Sub RegisterFileAssociations( _
ByVal As String, _
ByVal As String, _
ByVal As String, _
ByVal ParamArray () As String _
)
Dim instance As C1TaskbarButton
Dim friendlyName As String
Dim defaultIcon As String
Dim openWithCmd As String
Dim extensions() As String
instance.RegisterFileAssociations(friendlyName, defaultIcon, openWithCmd, extensions)
public void RegisterFileAssociations(
string ,
string ,
string ,
params string[]
)
public:
void RegisterFileAssociations(
String^ ,
String^ ,
String^ ,
... array<String^>^
)
Parameters
- friendlyName
- A friendly name for the data format, suitable to display to a user.
- defaultIcon
- The path to the default icon, such as, "systemroot\system32\imageres.dll,15".
- openWithCmd
- The command and arguments to be used when opening a shortcut to a document, such as, '"C:\Program Files\Paint.NET\PaintDotNet.exe" "%1"'.
- extensions
- The extensions to register, such as '.png'.
See Also